
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>超市订单管理系统</title>
    <link type="text/css" rel="stylesheet" href="/static/css/style.css"/>
    <link type="text/css" rel="stylesheet" href="/static/css/public.css"/>
</head>
<body>
<div>
    <!--头部-->
    <header class="publicHeader">
        <h1>超市订单管理系统</h1>
        <div class="publicHeaderR">
            <p><span>下午好！</span><span style="color: #fff21b">admin</span> , 欢迎你！</p>
            <a href="/loginOut">退出</a>
        </div>
    </header>
    <!--时间-->
    <section class="publicTime">
        <span id="time">时间</span>
        <a href="#">温馨提示：为了能正常浏览，请使用高版本浏览器！（IE10+）</a>
    </section>
</div>
<!--主体内容-->
<section class="publicMian">
    <!--左侧导航-->
    <div>
        <div class="left">
            <h2 class="leftH2"><span class="span1"></span>功能列表 <span></span></h2>
            <nav>
                <ul class="list">
                    <li><a href="#">订单管理</a></li>
                    <li><a href="#">供应商管理</a></li>
                    <li><a href="/templates/user/list">用户管理</a></li>
                    <li><a href="/templates/user/update/pwd">密码修改</a></li>
                    <li><a href="/loginOut">退出系统</a></li>
                </ul>
            </nav>
        </div>
    </div>
    <!--右侧内容-->
    <div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>用户管理页面 &gt;&gt; 用户添加页面</span>
        </div>
        <div class="providerAdd">
            <form id="userForm" name="userForm" method="post" action="/templates/user/add/">
                
                <!--div的class 为error是验证错误，ok是验证成功-->
                <div>
                    <label for="userCode">用户编码：</label>
                    
                    <input type="text" name="userCode" id="userCode" value=""
                        onblur="isUserCodeExist()"/>
                    <!-- 放置提示信息 -->
                    <span color="red"></span>
                </div>
                <div>
                    <label for="userName">用户名称：</label>
                    <input type="text" name="userName" id="userName"  value="">
                    <span color="red"></span>
                </div>
                <div>
                    <label for="userPassword">用户密码：</label>
                    <input type="password" name="userPassword" id="userPassword"  value="">
                    <span color="red"></span>
                </div>
                <div>
                    <label for="ruserPassword">确认密码：</label>
                    <input type="password" name="ruserPassword" id="ruserPassword" value="">
                </div>
                <div>
                    <label>用户性别：</label>
                    <select name="gender" id="gender">
                        <option value="1">男</option>
                        <option value="2">女</option>
                    </select>
                    <span color="red"></span>
                </div>
                <div>
                    <label for="birthday">出生日期：</label>
                    <input type="text" Class="Wdate" id="birthday" name="birthday"
                           readonly="readonly" onclick="WdatePicker();"
                           value=""/>

                    <span color="red"></span>
                </div>
                <div>
                    <label for="phone">用户电话：</label>
                    <input type="text" name="phone" id="phone" value="">
                    <span color="red"></span>
                </div>
                <div>
                    <label for="address">用户地址：</label>
                    <input name="address" id="address" value="">
                    <span color="red"></span>
                </div>
                <div>
                    <label>用户角色：</label>
                    <!-- 列出所有的角色分类 -->
                    <select name="userRole" id="userRole">
                        <option value="1">系统管理员</option>
                        <option value="2">经理</option>
                        <option value="3">普通员工</option>
                    </select>
                    <span color="red"></span>
                </div>
                <div class="providerAddBtn">
                    <p></p>
                    <input type="submit" id="add" name="add" value="保存"/>
                    <input type="button" id="back" name="back" value="返回"/>
                </div>
            </form>
        </div>
    </div>
</section>
<div>
<footer class="footer">
    版权信息
</footer>
<script type="text/javascript" src="/static/js/time.js"></script>
<script type="text/javascript" src="/static/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/static/js/common.js"></script>
<script type="text/javascript" src="/static/calendar/WdatePicker.js"></script>
</div>
<script type="text/javascript" src="/js/user.js"></script>
</body>
</html>